//
//  ZCRecommendViewController.m
//  VoiceMusic
//
//  Created by dllo on 15/10/26.
//  Copyright © 2015年 zhangdeyu. All rights reserved.
//

#import "ZCRecommendViewController.h"
#import "MNWheelView.h"
#import "ZCAFNetWork.h"
#import "ZCrecommedModel.h"
@interface ZCRecommendViewController ()
@property (nonatomic, strong) NSMutableArray *recommedArr;
@end

@implementation ZCRecommendViewController
#pragma mark 初始化
-(instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.recommedArr = [NSMutableArray array];
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    MNWheelView *view = [[MNWheelView alloc] initWithFrame:CGRectMake(0, 40, self.view.frame.size.width, 500)];
    UIImage *image1=[UIImage imageNamed:@"1"];
    UIImage *image2=[UIImage imageNamed:@"2"];
    UIImage *image3=[UIImage imageNamed:@"3"];
    UIImage *image4=[UIImage imageNamed:@"4"];
    view.images=[NSArray arrayWithObjects:image1,image2,image3,image4, nil];
    view.backgroundColor = [UIColor clearColor];
    [self.view addSubview:view];
    
    
    //返回键
    UIButton *leftButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [leftButton setImage:[UIImage imageNamed:@"iconfont-fanhui"] forState:UIControlStateNormal];
    leftButton.frame = CGRectMake(0, 0, 30, 30);
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:leftButton];
    [leftButton addTarget:self action:@selector(returnClick:) forControlEvents:UIControlEventTouchUpInside];
   
    
}

#pragma mark 返回
- (void)returnClick:(UIBarButtonItem *)button
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
